<html>
    <head><title>Lista Valores</title></head>
    <body>
        <div align="center">
            <form action="excluir.php" method="post" name="frm" id="frm">
                <table width="327" border="1" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="327" height="30"><div align="center">
                                <input name="Submit3" type="submit" value="Excluir">
                            </div></td>
                    </tr>
                    <tr>
                        <td height="41" align="center"><table width="95%"  border="0" cellspacing="0" cellpadding="0">
                                <?php
                                include '../core/controllers/categoriasController.class.php';
                                include '../core/config/database.class.php';

                                $listarCategoria = new CategoriasController();
                                $dados = $listarCategoria->listarCategoria();

                                foreach ($dados as $registros) {
                                    
                                    ?>

                                    <tr>
                                        <td><input type="checkbox" name="ck[<?php $i ?>]" value="<?= $registros['idcategoria'] ?>"></td>
                                        <td><?php print $registros['categoria'] ?></td>                                        
                                    </tr>

                            <?php } ?>
                        </table></td>
                    </tr>
                </table>
            </form>
        </div>
    </body>
</html>
